import request from "../utils/request";

export function getSuggestion(params) {
  return request({
    url: "/suggestion/list",
    method: "get",
    params,
  });
}

export function addSuggestion(data) {
  return request({
    url: "/suggestion/add",
    method: "post",
    data,
  });
}

export function getSuggestionDetail(params) {
  return request({
    url: "/suggestion/detail",
    method: "get",
    params,
  });
}

export function getSuggestionReplyList(params) {
  return request({
    url: "/suggestion/reply/list",
    method: "get",
    params,
  });
}

export function replySuggestion(data) {
  return request({
    url: "/suggestion/reply",
    method: "post",
    data,
  });
}
